Skip to content

Set up Cloud dev environment and add AGENTS.md - #233

Closed
chriscarrollsmith wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-18b2
Closed

Set up Cloud dev environment and add AGENTS.md#233
chriscarrollsmith wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-18b2

Conversation

@chriscarrollsmith

Copy link
Copy Markdown
Contributor

Summary

Sets up and verifies the development environment for this FastAPI + Jinja2 + PostgreSQL webapp, and documents non-obvious startup caveats for future cloud agents.

Only one file is added (AGENTS.md); no application code was modified.

Environment setup performed

  • Installed uv and Python 3.13, synced dependencies (uv sync).
  • Installed Docker (with fuse-overlayfs storage driver and containerd-snapshotter disabled for Docker 29) to run Postgres.
  • Created .env (git-ignored) with a generated SECRET_KEY and DB_NAME.
  • Started Postgres via sudo docker compose up -d.
  • Installed Playwright Chromium for the browser tests.

Verification

Service Command Result
Lint uv run ruff check . All checks passed
Type check uv run ty check . All checks passed
Tests uv run pytest tests/ 543 passed
App (dev) uv run python -m uvicorn main:app --host 0.0.0.0 --port 8000 --reload HTTP 200; registered a new user end-to-end

Hello-world task

Registered a new user (Ada Lovelace) through the browser UI, which auto-logged in and redirected to the dashboard.

register_new_user_hello_world.mp4

Homepage Dashboard after registration Profile

Update script vs AGENTS.md

  • Update script (minimal, run on VM startup): uv sync.
  • AGENTS.md captures durable, non-obvious run caveats (Docker not managed by systemd → start sudo dockerd; docker needs sudo; .env recreation; Postgres/Playwright requirements for tests).

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: Christopher Carroll Smith <chriscarrollsmith@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants